package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 产能设置
 * </p>
 *
 * @author XUQI
 * @since 2019-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_otd_produce_capacity")
@ApiModel(value = "OtdProduceCapacity对象", description = "产能设置")
public class OtdProduceCapacity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "表达式")
    @TableField("EXPRESSION")
    private String expression;

    @ApiModelProperty(value = "描述")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "产能")
    @TableField("CAPACITY")
    private Integer capacity;

    @ApiModelProperty(value = "日期")
    @TableField("PRODUCE_DATE")
    private Date produceDate;

    @ApiModelProperty(value = "工厂")
    @TableField("WORKS")
    private String works;

    @ApiModelProperty(value = "优先级")
    @TableField("PRIORITY")
    private Integer priority;

    @ApiModelProperty(value = "状态 1 启用 0禁用")
    @TableField("STATE")
    private String state;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "最后修改人")
    @TableField(value = "UPDATE_BY", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    @ApiModelProperty(value = "版本号")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;
}
